public class Test {
    public static void main(String[] args) {
        MyClass[] arr=new MyClass[3];
	for(int i=0;i<3;i++)
	{
        arr[i].value=100;
	}
    }
}
class MyClass{
    public int value=1;
}
